namespace Battle
{
	public class WalkToAttack : BaseTransition
	{
		public override bool Transite(FsmContext context, ref FsmState nxt)
		{
			Actor a = context.Actor;
			if (a.InAttackRange(a.Target))
			{
				nxt = FsmState.Attack;
				return true;
			}
			return false;
		}
	}
	
	public class WalkToIdle : BaseTransition 
	{
		public override bool Transite(FsmContext context, ref FsmState nxt)
		{
			Actor a = context.Actor;
			if (a.InAttackRange(a.Target))
			{
				nxt = FsmState.Attack;
				return true;
			}
			return false;
		}
	}
}
